package com.mzy.datepackage.M2022.Apr.fourteen;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/4/18 10:49
 * @Version 1.0
 */
public class ss {
    private String configSave = "./run/configSave";

    public static void main(String[] args) {
        String configSave = "./run/configSave";
        String configSave1 = ".\\run\\configSave";
        File file = new File(configSave);
        String fileName = configSave.substring(configSave.lastIndexOf(File.separator) + 1);
        String fileName3 = configSave.substring(configSave1.lastIndexOf(File.separator) + 1);
        String fileName1 = configSave.substring(0,configSave.lastIndexOf("/"));
        System.out.println(fileName);
        System.out.println(fileName1);
        System.out.println(fileName3);


    }
}
